package java67_16;

public class Hq2 {
	private String name;

	public Hq2(String n) {
		name = n;
	}

	/**
	 * 评价老师,留意参数类型
	 * 
	 * @param j
	 */
	public void judge(KGCTeacher j) {
		j.selfIntro();
		j.goodAt();// !!!!
		System.out.println(name + "说:试讲一节课");
		j.giveLession();
		System.out.println(name + "认为" + j.getName() + " 很好");
	}

	// 重载还是必要的
	public void judge(ClassRoom r) {
		System.out.println(name + "视察" + r.getNo());
		if (r.getDesks() > 20 && r.getPcs() > 20 && r.getSize() > 40) {
			System.out.println(name + "对这间教室很满意");
		} else {
			System.out.println(name + "对这间教室不满意");
		}
	}
}
